from tortoise.models import Model
from tortoise import fields

class Corpus(Model):
    id = fields.IntField(pk=True, description='语料id')
    question = fields.CharField(max_length=3000, description='问题')
    answer = fields.CharField(max_length=3000, description='答案')
    status = fields.BooleanField(default=True, description='是否启用')
    from_model = fields.CharField(max_length=50, description='来源')
    from_class = fields.CharField(max_length=50, description='类型')
    create_time = fields.DatetimeField(auto_now_add=True, description='创建时间')
